<ion-header>
    <ion-navbar>
        <ion-title>List</ion-title>
    </ion-navbar>
</ion-header>

<ion-content>
    <p>111111</p>
    <button ion-button block (click)="back()" color="primary">返回</button>
    <button ion-button block (click)="init()" color="primary">init</button>
    <button ion-button block (click)="getRegistrationID()" color="primary">getRegistrationID</button>
    <button ion-button block (click)="setBadge(5)" color="primary">setBadge</button>

    <ion-list>
        <button ion-item *ngFor="let item of items" (click)="itemTapped($event, item)">
            <ion-icon [name]="item.icon" item-start></ion-icon>
            {{item.title}}
            <div class="item-note" item-end>
                {{item.note}}
            </div>
        </button>
    </ion-list>
    <div *ngIf="selectedItem" padding>
        You navigated here from
        <b>{{selectedItem.title}}</b>
    </div>
</ion-content>